package com.example.teesystem.service;

import com.example.teesystem.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teesystem.entity.vo.assistant.AssistantResponseVo;
import com.example.teesystem.entity.vo.course.CourseResponseVo;
import com.example.teesystem.entity.vo.course.CourseSelectVo;
import com.example.teesystem.entity.vo.course.CourseUpdateVo;
import com.example.teesystem.entity.vo.course.CourseUploadVo;
import com.example.teesystem.entity.vo.PageResponseVo;

import java.util.List;

/**
* @author 28131
* @description 针对表【t_course】的数据库操作Service
* @createDate 2022-03-23 12:41:48
*/
public interface CourseService extends IService<Course> {
    
    PageResponseVo<CourseResponseVo> getCourses(Integer cur, Integer size);
    
    PageResponseVo<CourseResponseVo> getCourseByConditions(CourseSelectVo courseSelectVo);
    
    boolean addCourse(CourseUploadVo courseUploadVo);
    
    boolean updateCourse(CourseUpdateVo courseUpdateVo);
    
    List<CourseResponseVo> getCourseByUid(int uid);
    
    CourseResponseVo getCourseById(Integer id);
    
    boolean delete(Integer id);
    
    List<CourseResponseVo> getCourseByStudentId(Integer studentId);

    List<CourseResponseVo> getCourseByAssistantId(Integer assistantId);
    
    List<AssistantResponseVo> getAssistants(Integer id);

    boolean updateDataImg(Integer courseId,String dataUrl);
    
}
